import request from '@/utils/request'
import { transFormValue } from '@/utils/tools'

//省份列表
export function commonGetProvinceList(data) {
    return request({
      url: '/common/getProvinceList' + transFormValue(data),
      method: 'post'
    })
}

//城市列表
export function commonGetCityList(data) {
  return request({
    url: '/common/getCityList' + transFormValue(data),
    method: 'post'
  })
}

//区街道列表
export function commonGetAreaList(data) {
    return request({
      url: '/common/getAreaList' + transFormValue(data),
      method: 'post'
    })
}
//上报行政区的中心坐标
export function commonUploadGeoCenterPoint(data) {
  return request({
    url: '/common/uploadGeoCenterPoint' + transFormValue(data),
    method: 'post'
  })
}

//获取oss配置
export function commonGetUploadFilePolicy(){
  return request({
    url: '/common/getUploadFilePolicy',
    method: 'post'
  })
}

